# version 300 es

uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
in vec4 position;
in vec4 color;       //顶点颜色
out  vec4 fColor;       //用于传递给片元着色器的变量


void main() { 
   gl_Position = projection * view * model  * position;
   fColor = color;   //将接收的颜色传递给片元着色器
}